package swa08.provider;

import java.util.Collection;
import java.util.Vector;

import javax.jws.WebService;

import swa2012.telco.broker.beans.Client;
import swa2012.telco.broker.beans.Message;
import swa2012.telco.broker.beans.BrokerSendMessageStatus;
import swa2012.telco.broker.BrokerCallback;

@WebService(targetNamespace = "http://broker.telco.swa2012/")
public interface Service extends BrokerCallback
{
	Client connectClient(String id);
	boolean disconnectClient(Client client);
	BrokerSendMessageStatus sendMessage(Message msg);
	Collection<Message> pullMessages(Client client);
	Collection<Client> listClients();
	Vector<Client> listClient();
	Vector<Message> pullMessage(Client client);
}
